﻿using IQIGame.Onigao.Framework;
using IQIGame.Onigao.Game;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay
{
    public class BattleUnitEntityView : Entity
    {
        public void Put()
        {
            this.EntityGroup?.HideEntity(this);
        }
    }
    
    public class BattleSceneEntityView : Entity
    {
        public Component comp;
        public override void OnPutBackToPool()
        {
            this.comp = null;
            base.OnPutBackToPool();
        }

        public void Put()
        {
            this.EntityGroup?.HideEntity(this);
        }
    }
}